package model.service;

import java.sql.SQLException;
import java.util.ArrayList;

import model.vo.BoardCategoryVO;
import model.vo.BoardVO;
import model.vo.PageListVO;

public interface BoardService {
	public ArrayList<BoardCategoryVO> writePageView();

	public void write(BoardVO vo) throws SQLException;

	public PageListVO pageList(int page) throws SQLException;
	
	public BoardVO read(int no) throws SQLException;

	public void reWrite(BoardVO vo) throws SQLException;
	
	public String textToCode(String text);

	public void update(BoardVO bvo) throws SQLException;

	public void delete(int titleNo) throws SQLException;

	public PageListVO searchByTitle(String searchtext, int num) throws SQLException;

	public PageListVO searchByWriter(String searchtext, int num) throws SQLException;
}
